package lwj;

import java.util.Scanner;

public class c2 {
	public static void main(String[] args) {
		System.out.println("请输入，每输入一个信息用回车确认");
		System.out.println("最后输入一个“#”号结束输入操作");
		Scanner reader=new Scanner(System.in);
		
		while(!reader.hasNext("#")) {
			String x=reader.next();
			if(reader.hasNextInt())
			{
				Long Long =reader.nextLong();
				System.out.println("您输入的为整数");
			}
			else if(reader.hasNextDouble())
			{
				Double Double =reader.nextDouble();
				System.out.println("您输入的为小数");
			}
			else if(reader.hasNext())
			{
				String s=reader.nextLine();
				System.out.println("您输入的为字符串");
			}
		}
	}

}
